package com.yohann.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yohann.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yohann.eduservice.entity.front.CourseVO;
import com.yohann.eduservice.entity.vo.CourseInfo;
import com.yohann.eduservice.entity.vo.CourseInfoVo;
import com.yohann.eduservice.entity.vo.CoursePublishVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Yohann
 * @since 2020-08-08
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfo courseInfo);

    CourseInfo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfo courseInfo);

    CoursePublishVo getCoursePublishVoById(String id);

    boolean DeleteCourse(String id);

    Map<String, Object> getCourseList(Page<EduCourse> coursePage, CourseVO courseVO);

    CourseInfoVo getBaseCourseInfo(String id);
}
